package com.cardrive.entity;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;

import com.cardrive.R;
import com.cardrive.properties.CarProperties;
import com.cardrive.util.Sprite;

public class Tire {

	private double pressure;
	private Point position;

	private Sprite spTire;

	public Tire(Context context, int posx, int posy) {
		this.position = new Point(posx, posy);
		spTire = new Sprite(context, R.drawable.ic_launcher, position.x, position.y);
	}

	public void render(Canvas canvas, Paint paint) {
		if (spTire != null) {
			spTire.render(canvas, paint);
		}
	}

	public double getFriction() {
		return pressure / CarProperties.MAX_TIRE_PRESSURE;
	}

	public void turnLeft(double angle) {

	}

	public void turnRight(double angle) {

	}

}
